package com.example.jobback.mapper;

import com.example.jobback.po.WorkExperience;
import com.example.jobback.resp.seeker.experience.work.WorkExperienceResp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @InterfaceName: WorkExperienceMapper
 * @Description: 工作经历mapper
 * @Author: lhb
 * @Date: 2025/5/23
 */
@Mapper
public interface WorkExperienceMapper {
    List<Long> getSeekerWorkExperienceIds(Long userId);

    int deleteWorkExperienceById(Long id, Long userId);

    int insertWorkExperience(@Param("element")WorkExperience element);

    int editWorkExperience(@Param("element")WorkExperience element);

    List<WorkExperienceResp> getWorkExperience(Long userId);
}
